<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core">

<f:loadBundle basename="resources.application" var="msg"/>

<h:head>
    <title><h:outputText value="Cinema Admin website" /></title>
    <h:outputStylesheet library="css" name="adminLogin.css"  />
</h:head>

<h:body>
<div class="centerDiv">
<h3>Cinema Administrator Site</h3>
<h5>Please authenticate yourself</h5>
<h:form>
	<h:inputText label="Username" class="inputText"
	  	size="20" value="#{loginController.uname}">
	</h:inputText>

	<h:inputSecret label="Password" class="inputText"
	  	size="20" value="#{loginController.password}">
	</h:inputSecret>

	<h:commandButton class="adminLoginBtn" value="Login" 
	   action="#{loginController.logIn}">                
	</h:commandButton>
<h:commandButton class="adminLoginBtn" action="index?faces-redirect=true" value="Back" />
</h:form>
<h:messages/>
</div>
</h:body>
</html>